package com.qiangqiang.entity;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.*;
import java.util.Date;

/**
 * 收取违禁品表
 * Created by q on 2018/2/1.
 */
@Entity
@Data
/**
 * 调用存储过程
 */
@NamedStoredProcedureQueries({@NamedStoredProcedureQuery(name="insert_ban",procedureName = "s_dormitory.insert_ban",
parameters = {@StoredProcedureParameter(mode = ParameterMode.IN,name = "scoreId",type = String.class),
        @StoredProcedureParameter(mode = ParameterMode.IN,name = "dId",type = String.class),
        @StoredProcedureParameter(mode = ParameterMode.IN,name = "goods",type = String.class)})})
public class Ban {
    /**
     * 使用违禁品表id
     */
    @Id
    private int bId;
    /**
     * 加减分表的id
     */
    private String scoreId;
    /**
     * 宿舍号
     */
    private String dId;
    /**
     * 所使用的违禁品
     */
    private String goods;
    /**
     * 检查时间
     */
    private Date time;
}
